package com.huang.auth.endpoint;

import com.huang.auth.entity.to.AuthUserResourceTO;
import com.huang.auth.entity.vo.AuthUserVO;
import com.huang.entity.result.HStringResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;


/**
 * @author HuangShen
 * @Description auth user 的RPC服务接口
 * @create 2021-09-07 8:11
 */
@Api(tags = "权限管理用户模块")
public interface AuthUserApi {


    @ApiOperation(value = "根据用户account查询权限用户详情")
    @GetMapping("/endpoint/authUserApi/queryByAccount")
    HStringResult<AuthUserVO> queryByAccount(@ApiParam("用户账号") @RequestParam(value = "account") String account);

    @ApiOperation(value = "根据Account查询资源")
    @GetMapping(value = "/endpoint/authUserApi/queryResourceByUserId")
    HStringResult<AuthUserResourceTO> queryResourceByUserId(@RequestParam Long userId);
}
